package de.dhbw.ka.tit09.picsim;

import org.eclipse.core.databinding.observable.Realm;

/**
 * Helper class which provides the realm of the user interface to classes which
 * have to modify the graphical user interface.
 * 
 * @author Andreas Bender
 * 
 */
public abstract class RealmProvider {
	private static Realm uiRealm;

	/**
	 * Returns the realm of the GUI.
	 * 
	 * @return the UI realm
	 */
	public static Realm getUIRealm() {
		return uiRealm;
	}

	/**
	 * Sets the GUI realm.
	 * 
	 * @param realm the UI realm
	 */
	public static void setUIRealm(Realm realm) {
		uiRealm = realm;
	}
}
